
import {createClass} from "react";

const {Actions} = require("react-native-router-flux");


export default class RouterServer{
    static async  replace  (sceneKey:string,props?:object){
        Actions.replace(sceneKey,props);
    }
    static async  push  (sceneKey:string,props?:object){
        Actions.push(sceneKey,props);
    }
    static async  pop  (){
        Actions.pop();
    }
    static async  popTo  (sceneKey:string,props?:object){
        Actions.popTo(sceneKey,props);
    }
    static async  refresh  (props?:object){
        Actions.refresh(props);
    }
}




